package com.melody.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 歌单·歌曲表
 * @TableName playlist_music
 */
@TableName(value ="playlist_music")
@Data
public class PlaylistMusic implements Serializable {
    /**
     * 歌单歌曲id
     */
    @TableId(value = "playlist_music_id")
    private Integer playlistMusicId;

    /**
     * 关联歌单信息表
     */
    @TableField(value = "list_id")
    private Integer listId;

    /**
     * 关联歌曲信息表
     */
    @TableField(value = "music_id")
    private Integer musicId;

    /**
     * 添加时间
     */
    @TableField(value = "add_time")
    private LocalDateTime addTime;

    /**
     * 歌曲在歌单中的排序
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标记，0:未删除,1:已删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}